package com.emergency.evaluate.dao;

import com.emergency.base.domain.Scenar;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface ScenarDao extends JpaRepository<Scenar, String>, JpaSpecificationExecutor<Scenar> {
    @Query (value = "select s from Scenar s where s.id=:scenarId")
    Scenar findAllById(@Param ( "scenarId" ) Long scenarId);
}
